<template>
	<view>
		<web-view :src="wp[0].itemLink"></web-view>
		<!-- {{name}} -->
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				wp: [],
				name:''
			}
		},
		methods: {

		},
		onLoad(option) {
			let that = this
			that.name=option.name
			console.log(option);
			uni.request({
				url: "https://openapiv2.dataoke.com/open-api/goods/list-super-goods",
				data:{
					pageId: 1,
					pageSize: 100,
					keyWords: that.name,
					sort: 0,
					type: 0,
					appkey: "622b674f76e31"
				},
				
				success(res) {
					that.wp = res.data.data.list
					that.wp = that.wp.filter((item) => {
						return item.id == option.id;
					})
					console.log(that.wp)
				},
			})
		}
	}
</script>

<style>

</style>
